package com.hjh.usb.accessory.communication

import android.hardware.usb.UsbAccessory

/**
 * @author： hjh
 * @createDate： 2025/6/24 11:45
 * @description：
 * @qq： 3472903821
 * @version: 1.0
 */
sealed class ConnectionState {
    object Disconnected : ConnectionState()
    object Connecting : ConnectionState()
    data class Connected(val accessory: UsbAccessory) : ConnectionState()
    data class Error(val message: String) : ConnectionState()
    data class Reconnecting(val accessory: UsbAccessory, val retryCount: Int) : ConnectionState()
}